package java9_2;

import java8_24.Dog;

/**
 * @author oldliu
 * @since 1.0
 */
public class DogTest {
    public static void main(String[] args) {
        Dog.printLegs();
        Dog d=null;
        //d.setColor("白色");
        d.printLegs();//nullpinter
        System.out.println(">>>>>>>>>>>>>>>>>>>>");
        Object o=null;
        ((Dog)o).printLegs();
    }
}
